{% extends 'base.html' %}
{% load static %}
{% block content %}
    <div class="container">
        <ul>
            {% for order in orders %}
                <span>订单编号:{{ order.o_num }}</span>
                <span>创建时间:{{ order.o_date }}</span>
                {% for goodsorder in order.goodsorder_set.all %}
                    <li><img src="{{ goodsorder.goods.productimg }}" alt="">
                        <span>数量:{{ goodsorder.nums }}</span>
                    </li>
                {% endfor %}
            {% endfor %}
        </ul>
    </div>
{% endblock %}